package com.model;

import java.io.Serializable;


/**
 * @author wangjg
 * @date 2023/11/1 15:15
 * @Description: 用户表
 */
public class User implements Serializable {

	/**
	 * id
	 */
	private Integer id;
	/**
	 * 登录名
	 */
	private String userName;
	/**
	 * 登录密码
	 */
	private String password;

	/**
	 * 显示用户名
	 */
	private String name;
	/**
	 * 学号
	 */
	private String num;
	/**
	 * 性别
	 */
	private String sex;
	/**
	 * 电话
	 */
	private String tel;
	/**
	 * 宿舍号
	 */
	private String roomNum;
	/**
	 * 宿舍ID
	 */
	private Integer roomId;
	/**
	 * 楼栋名
	 */
	private String buildName;
	/**
	 * 楼栋ID
	 */
	private Integer buildId;
	/** 角色类型：宿舍管理员=1；学生=2*/
	private Integer userType;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getRoomNum() {
		return roomNum;
	}

	public void setRoomNum(String roomNum) {
		this.roomNum = roomNum;
	}

	public Integer getRoomId() {
		return roomId;
	}

	public void setRoomId(Integer roomId) {
		this.roomId = roomId;
	}

	public String getBuildName() {
		return buildName;
	}

	public void setBuildName(String buildName) {
		this.buildName = buildName;
	}

	public Integer getBuildId() {
		return buildId;
	}

	public void setBuildId(Integer buildId) {
		this.buildId = buildId;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public User() {
	}

	public User(String userName, String password, Integer userType) {
		this.userName = userName;
		this.password = password;
		this.userType = userType;
	}

	public User(String userName, String password, String name, String num, String sex, String tel, String roomNum, Integer roomId, String buildName, Integer buildId, Integer userType) {
		this.userName = userName;
		this.password = password;
		this.name = name;
		this.num = num;
		this.sex = sex;
		this.tel = tel;
		this.roomNum = roomNum;
		this.roomId = roomId;
		this.buildName = buildName;
		this.buildId = buildId;
		this.userType = userType;
	}
}